// <copyright file="CategoryDTO.cs" company="EnterpriseApi">
// Copyright (c) EnterpriseApi. All rights reserved.
// </copyright>

namespace EnterpriseApi.DTOs;

/// <summary>
/// 类别数据传输对象，用于类别数据的展示和传递
/// </summary>
public class CategoryDTO
{
    /// <summary>
    /// 类别唯一标识符
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 类别名称
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    /// 类别描述
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 类别创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 类别最后更新时间
    /// </summary>
    public DateTime? UpdatedAt { get; set; }

    /// <summary>
    /// 类别下的产品数量
    /// </summary>
    public int ProductCount { get; set; }
}